import type { MockMethod } from "vite-plugin-mock";

const menuList = {
  code: 200,
  msg: "获取菜单列表成功",
  data: [
    {
      label: "SB知识库",
      children: [
        {
          label: "下单前",
          children: [
            {
              label: "下单前的事情",
            },
            {
              label: "下单后的事情",
            },
          ],
        },
        {
          label: "售中",
          children: [
            {
              label: "如何下单",
            },
            {
              label: "如何查询订单",
            },
          ],
        },
      ],
    },
    {
      label: "BD知识库",
      children: [
        {
          label: "售前",
          children: [
            {
              label: "订单咨询",
            },
            {
              label: "包裹咨询",
            },
          ],
        },
        {
          label: "售中",
          children: [
            {
              label: "如何下单",
            },
            {
              label: "如何查询订单",
            },
          ],
        },
      ],
    },
  ],
};

export default [
  {
    url: "/api/v1/tree",
    method: "get",
    response: () => {
      return menuList;
    },
  },
] as MockMethod[];
